<template>
  <div>
    <h1><slot></slot></h1>

    <module-state1>直接访问</module-state1>
    <module-state2>state → 组件的 computed</module-state2>
  </div>
</template>

<script>
import ModuleState1 from './ModuleState1.vue'
import ModuleState2 from './ModuleState2.vue'

export default {
  name: 'ModuleState',
  components: {
    ModuleState1,
    ModuleState2
  }
}
</script>
